DX11 CREATE OBJECT SPHERE

Creates a sphere object of the given radius.

  Syntax
Return Dword = DX11 CREATE OBJECT SPHERE(radius, [segsAcross], [segsDown], [vertLayout])
  Parameters
radius
Float
The radius of the sphere to be created.
[Optional] segsAcross
Dword
The number of horizontal segments. Defaults to 16 if omitted.
[Optional] segsDown
Dword
The number of vertical segments. Defaults to 16 if omitted.
[Optional] vertLayout
Dword
The object will be created to conform to this vertex layout. Only POSITION, TEXCOORD0, COLOR0 and NORMAL data is created; any other data elements are set to 0. Will use a default VertexLayout (POSITION/COLOR/NORMAL/TEXCOORD) if omitted.

  Returns

The created object.

  See also

OBJECT Functions Menu
DX11 Function Categories